package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

    List<Role> findAll();
	PageResult findPage(QueryPageBean queryPageBean);

	void add(Integer[] permissionIds, Role role, Integer[] menuIds);

	void delRoleById(Integer id);

	Role findById(Integer id);

	List<Integer> findPermissionIdsByRoleId(Integer id);

	void editRole(Integer[] permissionIds, Role role, Integer[] menuIds);

    void addMenu(Role role, Integer menuIds);
}
